Skip to content

Conversation

huonw
Copy link
Contributor

@huonw huonw commented Aug 14, 2013

A pattern like foo @ Foo(Bar(*), _) should be legal, even if foo moves,
since the subpatterns are purely structural.

Fixes #3761.

…indings.

A pattern like `foo @ Foo(Bar(*), _)` should be legal, even if `foo` moves,
since the subpatterns are purely structural.

Fixes rust-lang#3761.
@huonw
Copy link
Contributor Author

huonw commented Aug 15, 2013

Whoops, I accidentally rebased #8490 on top of this branch and so this landed as 58021be.

@huonw huonw closed this Aug 15, 2013
@huonw huonw deleted the 3761 branch November 25, 2013 10:57
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 7, 2022
Check if lhs < rhs in modulos in `identity_op`

Fixes rust-lang#8508

changelog: [`identity_op`] now checks for modulos, e.g. `1 % 3`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect 'cannot bind by-move with sub-bindings` error
2 participants